//
//  IAAAuthCheDetailCCell.h
//  iPadAuditAuthorise
//
//  Created by XiangDongMBP on 16/9/7.
//  Copyright © 2016年 XiangDong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, IAAAuthCheDetailCCellType) {
    IAAAuthCheDetailCCellTypeCircle = 0,    //圆角
    IAAAuthCheDetailCCellTypeRect,          //矩形
    IAAAuthCheDetailCCellTypeAllScreen      //全屏
};

@class IAAAuthCheDetailCCell;
@protocol IAAAuthCheDetailCCellDelegate <NSObject>
@optional
- (void)IAAAuthCheDetailCCell:(IAAAuthCheDetailCCell *)cell closeBtnTapped:(UIButton *)btn;
- (void)IAAAuthCheDetailCCell:(IAAAuthCheDetailCCell *)cell cameraBtnTapped:(UIButton *)btn;
@end

@class IAAAuthCheckSortItem;
@interface IAAAuthCheDetailCCell : UICollectionViewCell

@property (weak, nonatomic) IBOutlet UIImageView *thumbnailImgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *closeBtn;
@property (weak, nonatomic) IBOutlet UIButton *cameraBtn;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leadingConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *trailingConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLabelHeightConstraint;


@property (assign, nonatomic) IAAAuthCheDetailCCellType type;
@property (strong, nonatomic) IAAAuthCheckSortItem *model;
@property (weak,   nonatomic) id<IAAAuthCheDetailCCellDelegate>delegate;

- (void)configViewWithData:(IAAAuthCheckSortItem *)model type:(IAAAuthCheDetailCCellType)type;

@end
